package com.xmg.design23.d17_state;

/**
 * @Author: mazhongqing
 * @Date: 2021/3/25 14:08
 */
public class Context {
    private State state;

    public Context() {
        this.state = new ConcreteStateA();
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public void Handle(){
        state.Handle(this);
    }
}
